package com.forgotpass;

import com.opensymphony.xwork2.ActionSupport;

public class GotoLogin extends ActionSupport{
		private String newuser,originaluser,newpass,confpass;
		
		
		public String getNewuser() {
			return newuser;
		}


		public void setNewuser(String newuser) {
			this.newuser = newuser;
		}


		public String getOriginaluser() {
			return originaluser;
		}


		public void setOriginaluser(String originaluser) {
			this.originaluser = originaluser;
		}


		public String getNewpass() {
			return newpass;
		}


		public void setNewpass(String newpass) {
			this.newpass = newpass;
		}


		public String getConfpass() {
			return confpass;
		}


		public void setConfpass(String confpass) {
			this.confpass = confpass;
		}


		@Override
		public String execute() throws Exception {
			// TODO Auto-generated method stub
			System.out.println("Redirecting to login page");
			addActionMessage("Username/Password set successfully ");
			return "success";
		}
}
